package com.sakura.mall.coupon.couponHistory.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.coupon.couponHistory.domain.entity.CouponHistoryEntity;
import com.sakura.mall.coupon.couponHistory.domain.request.AddCouponHistoryRequest;
import com.sakura.mall.coupon.couponHistory.domain.request.UpdateCouponHistoryRequest;
import com.sakura.mall.coupon.couponHistory.domain.request.CouponHistoryPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.coupon.couponHistory.domain.vo.CouponHistoryVo;

/**
 * 优惠券领取历史记录 service
 *
 * @author sakura
 */
public interface CouponHistoryService extends IService<CouponHistoryEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<CouponHistoryVo> queryPage(CouponHistoryPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddCouponHistoryRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateCouponHistoryRequest request);
}
